package com.maiji.cloud.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.login.ReduceWeightFundLogEntity;
/**
 * 获得减肥基金的记录
 * Description:  
 * @author zhanglr  
 * @date 2019年9月6日
 */
@Mapper
public interface ReduceWeightFundLogMapper extends BaseMapper<ReduceWeightFundLogEntity> {
	//获得当日获取减肥基金的人数
	public Integer getTodaySum(@Param("time")Date time);
	/**
	 * 获取未结算的数据
	 * @param time
	 * @return
	 */
	List<ReduceWeightFundLogEntity>  getReduceWeightFundLogEntityList(@Param("time")Date time);
	
	/**
	 * 
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	List<ReduceWeightFundLogEntity>  getReduceWeightFundLogEntityListByTime(@Param("userId")String userId,@Param("startTime")String startTime,@Param("endTime")String endTime);
	/**
	 * 获取当天有无正在助力的减肥基金
	 * @param nowTime
	 * @param userId
	 * @return
	 */
	public ReduceWeightFundLogEntity selectOneByTime(@Param("nowTime")String nowTime, @Param("userId")String userId);
	
	
}
